function checkUsername() {
    if($("#username").val()==""){
        usernameFlag = false;
        $("#usernameError").css("display","block");
    }else {
        usernameFlag = true;
        $("#usernameError").css("display", "none");
    }
}

function checkPassword() {
    if($("#password").val()==""){
        passwordFlag = false;
        $("#passwordError").css("display","block");
    }else {
        passwordFlag = true;
        $("#passwordError").css("display", "none");
    }
}

function checkCode() {
    if($("#code").val()!=code){
        codeFlag = false;
        $("#codeError").css("display","block");
    }else {
        codeFlag = true;
        $("#codeError").css("display", "none");
    }
}

function checkrUsername() {
    if($("#rusername").val()==""){
        rusernameFlag = false;
        $("#rusernameError").css("display","block");
    }else {
        rusernameFlag = true;
        $("#rusernameError").css("display", "none");
    }
}

function checkremail() {
    if($("#remail").val()==""){
        remailFlag = false;
        $("#reamilError").css("display","block");
    }else {
        remailFlag = true;
        $("#reamilError").css("display", "none");
    }
}

function checkrPassword() {
    if($("#rpassword").val()==""){
        rpasswordFlag = false;
        $("#rpasswordError").css("display","block");
    }else {
        rpasswordFlag = true;
        $("#rpasswordError").css("display", "none");
    }
}

function checkrNewPassword() {
    if($("#rnewpassword").val()==""){
        rnewpasswordFlag = false;
        $("#rnewpasswordError").css("display","block");
    }else {
        rnewpasswordFlag = true;
        $("#rnewpasswordError").css("display", "none");
    }
}




